/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class KonwlegeEntity {
    private final int knowledgeId;
    @NotNull
    private final String knowledgeName;

    public KonwlegeEntity(int i2, @NotNull String knowledgeName) {
        Intrinsics.checkNotNullParameter(knowledgeName, "knowledgeName");
        this.knowledgeId = i2;
        this.knowledgeName = knowledgeName;
    }

    public static /* synthetic */ KonwlegeEntity copy$default(KonwlegeEntity konwlegeEntity, int i2, String str, int i3, Object obj) {
        if ((i3 & 1) != 0) {
            i2 = konwlegeEntity.knowledgeId;
        }
        if ((i3 & 2) != 0) {
            str = konwlegeEntity.knowledgeName;
        }
        return konwlegeEntity.copy(i2, str);
    }

    public final int component1() {
        return this.knowledgeId;
    }

    @NotNull
    public final String component2() {
        return this.knowledgeName;
    }

    @NotNull
    public final KonwlegeEntity copy(int i2, @NotNull String knowledgeName) {
        Intrinsics.checkNotNullParameter(knowledgeName, "knowledgeName");
        return new KonwlegeEntity(i2, knowledgeName);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof KonwlegeEntity)) {
            return false;
        }
        KonwlegeEntity konwlegeEntity = (KonwlegeEntity) obj;
        return this.knowledgeId == konwlegeEntity.knowledgeId && Intrinsics.areEqual(this.knowledgeName, konwlegeEntity.knowledgeName);
    }

    public final int getKnowledgeId() {
        return this.knowledgeId;
    }

    @NotNull
    public final String getKnowledgeName() {
        return this.knowledgeName;
    }

    public int hashCode() {
        return (this.knowledgeId * 31) + this.knowledgeName.hashCode();
    }

    @NotNull
    public String toString() {
        return "KonwlegeEntity(knowledgeId=" + this.knowledgeId + ", knowledgeName=" + this.knowledgeName + ')';
    }
}